<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">Sqwarea: Change your OpenID</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Change your OpenID</h1>
    <p>
      In order to change your OpenID, please log on with the new OpenID you want.
    </p>
    <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
      <fieldset>
        <legend>Enter your OpenID URL:</legend>
        <% if (((List<string>)ViewData["Messages"]).Count > 0) { %>
        <ul>
          <% foreach(var message in ((List<string>)ViewData["Messages"]) ) { %>
            <li><%= message %></li>
	      <% } %>
        </ul>
        <% } %>
        <p>
          <%= Html.TextBox("openId", ViewData["OpenId"]) %>
        </p>
        <p class="formButtons">
          <input type="submit" value="Log on with my new OpenID" />
        </p>
      </fieldset>
    <% } %>
    <p style="text-align: right;">
      <%= Html.ActionLink("Back to account settings", "Settings", "Account") %>.
    </p>
</asp:Content>
